Skip to content

Update Implementations of Metrics#110

Merged
collinleiber merged 6 commits intomainfrom
metrics_w_outliers
Feb 24, 2026
Merged

Update Implementations of Metrics#110
collinleiber merged 6 commits intomainfrom
metrics_w_outliers

Conversation

@collinleiber
Copy link
Copy Markdown
Owner

  • Update the implementation of multiple clustering metrics
  • Fix error when using unsupervised accuracy with outliers Issue with Clustering Accuracy #106
  • Fix errors when testing algorithms. First occured in Added SHADE #109
  • Fix data loading issue by using fetch_file from sklearn
  • Only test data loading functionality for one Python version to decrease necessary compute

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 92.99065% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.77%. Comparing base (7ccb9dc) to head (eab0528).

Files with missing lines Patch % Lines
clustpy/data/real_video_data.py 74.41% 11 Missing ⚠️
clustpy/data/_utils.py 83.33% 2 Missing ⚠️
clustpy/metrics/internal_clustering_metrics.py 83.33% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
- Coverage   92.89%   92.77%   -0.13%     
==========================================
  Files          73       63      -10     
  Lines        9140     9135       -5     
==========================================
- Hits         8491     8475      -16     
- Misses        649      660      +11     
Files with missing lines Coverage Δ
clustpy/data/real_torchvision_data.py 80.45% <ø> (-0.86%) ⬇️
clustpy/data/real_uci_data.py 99.47% <100.00%> (+0.34%) ⬆️
clustpy/data/real_world_data.py 58.89% <100.00%> (ø)
clustpy/metrics/_metrics_utils.py 100.00% <100.00%> (ø)
clustpy/metrics/confusion_matrix.py 97.01% <100.00%> (+0.93%) ⬆️
clustpy/metrics/external_clustering_metrics.py 100.00% <100.00%> (ø)
clustpy/metrics/hierarchical_metrics.py 98.46% <100.00%> (+0.24%) ⬆️
clustpy/metrics/multipe_labelings_scoring.py 95.36% <100.00%> (+0.12%) ⬆️
clustpy/metrics/pair_counting_scores.py 100.00% <100.00%> (+1.26%) ⬆️
clustpy/utils/checks.py 91.17% <100.00%> (ø)
... and 5 more

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@collinleiber collinleiber force-pushed the metrics_w_outliers branch 7 times, most recently from d9d8fbd to e881d71 Compare February 20, 2026 13:16
… with clustpy. Update Dip.c to be compatible with numpy v2
@collinleiber collinleiber force-pushed the metrics_w_outliers branch 9 times, most recently from eab0528 to b50a27a Compare February 24, 2026 06:59
@collinleiber collinleiber merged commit 4a36821 into main Feb 24, 2026
4 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant